<template>
    <div class="goods">
       <goods-list-item v-for="item in goods" :goods-item="item"></goods-list-item>
    </div>
</template>

<script>
import GoodsListItem from './GoodsListItem'

export default {
    name: 'GoodsList',//商品展示列表
    components: {
        GoodsListItem
    },
    props: {
        goods: {
            type: Array,
            default() {
                return []
            }
        }
    }
}
</script>

<style scoped>
    .goods {
        display: flex;
        flex-wrap: wrap;/*flex多行 */
        justify-content: space-around;/*在各项周围留空白 */
        padding: 2px;
    }
</style>